Allow GTK4 to be added as a subproject
authorBogDan Vatra <bogdan@kde.org>
Fri, 26 Feb 2021 07:27:02 +0000 (09:27 +0200)
committerBogDan Vatra <bogdan@kde.org>
Fri, 26 Feb 2021 07:27:02 +0000 (09:27 +0200)
meson.build

index f3dba9d27600f027c1c6ed9a7096a9da88cbbc7d..145a848a86789315a213d609afee073298d7be4b 100644 (file)
@@ -810,7 +810,9 @@ else
   message('Not executing post-install steps automatically when cross compiling')
 endif
 
-meson.add_dist_script('build-aux/meson/dist-theme.py')
+if not meson.is_subproject()
+    meson.add_dist_script('build-aux/meson/dist-theme.py')
+endif
 
 if host_machine.system() != 'windows'
   # Install Valgrind suppression files (except on Windows,